package com.tcode.springbootweb.server;

import com.tcode.springbootweb.bean.UserBean;
import com.tcode.springbootweb.config.UserFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "user-server",fallback = UserFeignFallBack.class)
public interface UserClient {

    @RequestMapping("findUser/{id}")
    UserBean selectUserByID(@PathVariable("id") int id);
}
